<template>
  <div>{{name}}</div>
  <div>{{age}}</div>
  <button @click="changeName"></button>
  <button @click="changeAge"></button>
  <button @click="changeTel"></button>
</template>

<script lang="ts">

export default {
  name:"Root",
  setup(){
    let name = '张三'
    let age = 10 
    let tel = "13670175092"
    
    function changeName(){
      console.log('changeName')
    }

    function changeAge(){
      console.log('changeAge')
    }

    function changeTel(){
      console.log('changeTel')
    }
    
    return {name , age, tel, changeName, changeAge, changeTel }
  }
}

</script>

<style >

</style>
